home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
programr
/
wclass21.zip
/
CPPFUNC.SCT
< prev
next >
Wrap
Text File
|
1994-12-20
|
1KB
|
45 lines
// Class: CLASS
//////////////////////////.cpp file/////////////////////////////////////////////////////
#include "$CLASS$.h"
// Functions for class CLASS
[
// Function: OPERATION_NAME
// Purpose: OPERATION_COMMENT1
// Parameters: CPP_OPERATION_PARAMETERS
// Comments: OPERATION_COMMENT2
OPERATION_RETURN_TYPE CLASS::OPERATION_NAME(CPP_OPERATION_PARAMETERS) CPP_OPERATION_CONSTANT
{
OPERATION_CODE
}
]
//Operator<< insertion for cout
//Update to access 1:M part class attributes
//Update to access 1:1 associated class attributes
//Update to access 1:M associated class attributes
ostream& operator<< (ostream& os, CLASS$& a$CLASS)
{
[ os << (BASE_CLASS &) a$CLASS;]
os << "Object Attribute Values - Class CLASS" << "\n";
[ os << "ATTRIBUTE_NAME: " << a$CLASS$.$ATTRIBUTE_NAME << "\n";]
[ os << " AGGREGATION_ONE_NAME$: " << a$CLASS$.$AGGREGATION_ONE_NAME << "\n";]
return os;
}
//Operator>> extraction for cin
//Update to access 1:M part class attributes
//Update to access 1:1 associated class attributes
//Update to access 1:M associated class attributes
istream& operator>> (istream& is, CLASS$& a$CLASS)
{
[ is >> (BASE_CLASS &) a$CLASS;]
cout << "\nEnter Object Attibute Values - Class CLASS";
[ cout << "\nEnter ATTRIBUTE_NAME : " << "\n";
is >> a$CLASS$.$ATTRIBUTE_NAME;]
[ is >> a$CLASS$.$AGGREGATION_ONE_NAME;]
return is;
}